package string;

public class TrimDemo {
    public static void main(String[] args) {
        String str="        Hello World     ";
        str=str.trim();
        System.out.println(str);


    }
}
